package com.myGroup.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("活动实体类")
public class Activity {
    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("活动名称")
    private String name;

    @ApiModelProperty("活动地点")
    private String place;

    @ApiModelProperty("活动举办方")
    private String org;

    @ApiModelProperty("活动内容")
    private String content;

    @ApiModelProperty("活动积分，数据库默认50")
    private Integer score;

    @ApiModelProperty("活动需要的人数，数据库默认100")
    private Integer people;

    @ApiModelProperty("已选择活动的人数，数据库默认0")
    private Integer choosePeople;

    @ApiModelProperty("活动开始时间")
    private LocalDateTime beginTime;

    @ApiModelProperty("状态 0:禁用，1:正常")
    private Integer status;

    @ApiModelProperty("图像")
    private String image;

    @ApiModelProperty("活动创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("活动修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
